<?php

	include_once 'connection.php';

	class SectionsModel {
		
	  private $connection = null;
	   
	 	public function __construct(){
	 		$this->connection = Connection::getInstance();
	 	}
	 		 
		public function createSection($query){
			return $this->connection->insertRow($query);
		}
		
		public function searchApplicationSections($query){
			return $this->connection->complexSelect($query);
		}
		
		public function searchSectionId($query){
			return $this->connection->searchSelect($query);
		}
		
		public function searchSectionName($query){
			return $this->connection->searchSelect($query); 	
		}		
	}

?>